{% extends "base.html" %}


{% block title %}
    管理员面板
{% endblock %}}

{% block navbar %}
    {% include'console/navbar_console.html' %}
{% endblock %}

{% block content %}
    <div class="container-fluid">
        <div class="row">
            {% include 'console/sidebar.html' %}

            <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                <h1 class="page-header">控制台</h1>
                <div class="row placeholders">
                    <div class="col-xs-6 col-sm-3 placeholder">
                        <img src="{{ url_for('static',filename='img/console/windy.gif') }}"
                             width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                        <h4>富强</h4>
                        <span class="text-muted">Something else</span>
                    </div>
                    <div class="col-xs-6 col-sm-3 placeholder">
                        <img src="{{ url_for('static',filename='img/console/happy.gif') }}"
                             width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                        <h4>民主</h4>
                        <span class="text-muted">Something else</span>
                    </div>
                    <div class="col-xs-6 col-sm-3 placeholder">
                        <img src="{{ url_for('static',filename='img/console/3.gif') }}"
                             width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                        <h4>文明</h4>
                        <span class="text-muted">Something else</span>
                    </div>
                    <div class="col-xs-6 col-sm-3 placeholder">
                        <img src="{{ url_for('static',filename='img/console/space.gif') }}"
                             width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                        <h4>和谐</h4>
                        <span class="text-muted">Something else</span>
                    </div>
                </div>


                <div class="table-responsive">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>用户编号</th>
                            <th>用户名</th>
                            <th>密码</th>
                            <th>邮箱</th>
                            <th>操作1</th>
                            <th>操作2</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for x in users %}
                            <tr>
                                <td>{{ x.id }}</td>
                                <td>{{ x.username }}</td>
                                <td>{{ x.password }}</td>
                                <td>{{ x.e_mail }}</td>
                                <td><a href="{{ url_for('admin.del_User',id=x.id) }}">删除</a></td>
                                <td><a href="{{ url_for('admin.edit_user',id=x.id) }}">编辑</a></td>
                            </tr>
                        {% endfor %}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
{% endblock %}


